package com.mobi.Survey.video;

import android.content.Context;
import android.media.MediaPlayer;
import android.view.View;
/**
 * 
 * <p>
 * <b>Author:</b> Yahya Arshad
 * <p>
 * <b>Company:</b> Mobi Media Soft
 * <p>
 * <b> Website:</b> www.mobimediasoft.com
 * <p>
 * YoutubePlayer.java
 */
public class YoutubePlayer extends VideoPlayer
{

	public YoutubePlayer(Context context)
	{
		super(context);

	}

//	@Override
//	public boolean onError(MediaPlayer arg0, int arg1, int arg2)
//	{
//		System.err.println("Error Playing this video invoking Callback");
//
//		if (ivc != null)
//			ivc.onError();
//
//		return false;
//	}

	@Override
	public void onPrepared(MediaPlayer arg0)
	{
		if (ivc != null)
			ivc.onPrepare();
		mProgressBar.setVisibility(View.GONE);
		mProgressMessage.setText("");

	}

}
